package com.fzu.ess.common.service;

import com.fzu.ess.common.Model.JsonModel;

/**
 * Created by ercha on 2015/10/28.
 */
public interface MailService {
    void sendSimpleMail(String sendTo, String subject, String text);

    boolean sendHtmlMail(String sendTo, String subject, String text);

    JsonModel sendActiveMail(String email);

    JsonModel sendForgetPasswordMail(String email);

    JsonModel sendResetPasswordMail(String email, String password);


    /**
     * 验证是否有该邮件
     * @param uuid
     * @param code
     * @return 成功返回用户的 email，失败返回 null
     */
    String hasMail(String uuid, String code);
}
